<%@ page import="gphoto.vo.Message" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
		<meta http-equiv="content-type" content="text/html; charset=windows-1250"/>
		<title>--==<%=((String)request.getParameter("titre")).toUpperCase()%>==--</title>
		<%
			String feuilleStyle = "include/gPhoto.css";
			if (session.getAttribute("connexion") != null) {
				feuilleStyle = "include/gPhotoPrive.css";
			}
		%>
		<link type="text/css" rel="stylesheet" href="<%= feuilleStyle %>" />
		<% if (request.getParameter("javascript") != null) { %>
		<script type="text/javascript" src="<%=request.getParameter("javascript")%>"></script>
		<% } %>
		<script type="text/javascript" src="include/entete.js"></script>
	</head>
	<body>
		<!-- TITRE -->
		<div class="titre">
			<%=request.getParameter("titre")%><br/><br/>
		</div>
		
		<!-- MENU PRICIPAL -->
		<table border="0" width="95%" align="center">
			<tr>
				<td class="menu1selectionnable"
					onmouseover="this.style.background='#FFCC66'" 
					onmouseout="this.style.background='#FFE582'"
		                                onclick="menuAccueil();">
					Accueil
				</td>
				<td class="menu1selectionnable"
					onmouseover="this.style.background='#FFCC66'" 
					onmouseout="this.style.background='#FFE582'"
					onclick="menuATrier();">
					A Trier
				</td>
				<td class="menu1selectionnable" 
					onmouseover="this.style.background='#FFCC66'" 
					onmouseout="this.style.background='#FFE582'"
					onclick="menuAfficher();">
					Afficher
				</td>
				<td class="menu1selectionnable" 
					onmouseover="this.style.background='#FFCC66'" 
					onmouseout="this.style.background='#FFE582'"
					onclick="menuRechercher();">
					Rechercher
				</td>
				<td class="menu1selectionnable" 
					onmouseover="this.style.background='#FFCC66'" 
					onmouseout="this.style.background='#FFE582'"
		                                onclick="menuOptions();">
					Options
				</td>
			</tr>
		</table>
		
		<!-- FORMULAIRE POUR LE MENU -->
		<div>
			<form name="formMenu" method="post" action="GPhoto">
				<input type="hidden" name="cmd" value="menu"/>
				<input type="hidden" name="destination"/>
			</form>
			<br/>
		</div>
		
		<!-- MESSAGES -->
		<% 
			Message msg = (Message)session.getAttribute("message");
			String message = "&nbsp;";
			String classMessage = "message_info";
			
			if (msg != null) {
				message = msg.getDescription();
				if (msg.getType() == Message.MESSAGE_ERREUR) {
					classMessage = "message_erreur";
				}
			}
			
			session.setAttribute("message", null);
		%>
		<div id="message_erreur" class="<%= classMessage %>"><%= message %></div>